package com.siwei.mes.service.erp;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.erp.Customer;

import java.util.List;

/**
 * (Customer)表服务接口
 *
 * @author linzi
 * @since 2024-08-14 22:17:51
 */
public interface CustomerService {
    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<Customer> getPage(PageQuery<Customer, Customer> query);

    /**
     * 根据id查询
     *
     * @param cusId
     * @return
     */
    Customer loadByCusID(Integer cusId);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Customer> getAll(Customer entity);
}
